package com.jz.bean;


import com.jz.myenum.ECuratorType;
import com.jz.util.AttributeSupport;
import com.jz.util.SystemSupport;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by Administrator on 2015/11/6.
 */
@XmlRootElement(name = "AppInfo")
public class AppInfoBean {
    private ECuratorType curatorType = ECuratorType.CONCURRENT;
    private String updateTime = "";
    private String message = "";
    private String localIP = SystemSupport.getLocalIp();
    private boolean childRun = false;

    public AppInfoBean() {
    }

    public AppInfoBean(boolean childRun, String updateTime, String message) {
        this.updateTime = updateTime;
        this.message = message;
        this.childRun = childRun;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    @XmlElement(name = "updatetime")
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getMessage() {
        return message;
    }

    @XmlElement(name = "message")
    public void setMessage(String message) {
        this.message = message;
    }

    public String getLocalIP() {
        return localIP;
    }

    @XmlElement(name = "ip")
    public void setLocalIP(String localIP) {
        this.localIP = localIP;
    }

    public boolean isChildRun() {
        return childRun;
    }

    @XmlElement(name = "childrun")
    public void setChildRun(boolean childRun) {
        this.childRun = childRun;
    }

    public ECuratorType getCuratorType() {
        return curatorType;
    }

    @XmlElement(name = "curatorType")
    public void setCuratorType(ECuratorType curatorType) {
        this.curatorType = curatorType;
    }
}
